package springboot.hello.helloSpringboot.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springboot.hello.helloSpringboot.service.ServiceDemo;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by lcplcp on 2017/8/21.
 */
@RestController
public class HelloSpringBoot {

    @Resource
    ServiceDemo serviceDemo;

    @RequestMapping(path = {"/helloSpringBoot"})
    public List HelloSpring (){
        return serviceDemo.queryDemo();
    }

}
